package com.qidian.by.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qidian.by.goods.dto.ItemSpeDetailInfoDTO;
import com.qidian.by.goods.dto.SpeInfo;
import com.qidian.by.pojo.goods.entity.ItemSpecification;
import com.qidian.by.pojo.goods.entity.ItemSpecificationItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 小可怎么都睡不够
 * @since 2024-05-08
 */
public interface ItemSpecificationMapper extends BaseMapper<ItemSpecification> {

    List<ItemSpecification> selectAll(@Param("itemId") Long itemId);

    List<ItemSpecification> selectByItemId(@Param("itemId") Long itemId);

    void deleteAllByItemId(Long itemId);

    void addSpes(@Param("list") List<SpeInfo> list);

    List<ItemSpeDetailInfoDTO> getAllItemSpeInfoByItemId(Long itemId);
}
